<template>
	<div class="secret">
		<rich-text :nodes="aboutUs"></rich-text>
	</div>
</template>

<script>
	import {
		policyIndex
	} from "@/common/api/index";
	export default {
		name: "secret",
		components: {},
		data() {
			return {
				aboutUs: "",
			};
		},
		onLoad(options) {
			this.getData(options.name);
		},
		methods: {
			async getData(options) {
				let res = await policyIndex({
					type: options
				});
				console.log(res);
				if (res.code === 1) {
					this.aboutUs = res.data.content;
					uni.setNavigationBarTitle({
						title: res.data.title
					});
				} else {
					this.showMsg(res.msg);
				}
			},
		},
	};
</script>

<style scoped lang="scss">
	.secret {
		padding: 40rpx;
	}
</style>